package com.haoze.nurseapp.service.feign;

import com.haoze.common.response.Result;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-doctor")
public interface EmrService {

    @RequestMapping(value = "/doctor/patient/{inpatNum}", method = RequestMethod.GET)
    Result detail(@RequestParam("inpatNum") String inpatNum);
}